public class 得到商和余数 {
    public static void main(String[] args) {
        int divident = 100;
        int divisor = 54;
        int count = 0;

        while (divident >= divisor) {
            divident = divident - divisor;
            count++;
        }
        System.out.println("商：" + count);
        System.err.println("余数:" + divident);
    }
}
